projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f89a15
)
SPL: fat: Fix spl_parse_image_header() return value handling
author
Tom Rini
<
[email protected]
>
Mon, 23 May 2016 15:51:13 +0000
(11:51 -0400)
committer
Tom Rini
<
[email protected]
>
Mon, 23 May 2016 15:51:13 +0000
(11:51 -0400)
The spl_parse_image_header() can return 0 and it is not an error.
Only treat non-zero return value as an error.
Signed-off-by: Marek Vasut <
[email protected]
>
Reviewed-by: Fabio Estevam <
[email protected]
>
Reviewed-by: Peng Fan <
[email protected]
>
Reviewed-by: Stefano Babic <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
common/spl/spl_fat.c
patch
|
blob
|
history
diff --git
a/common/spl/spl_fat.c
b/common/spl/spl_fat.c
index 338ea2f092b8dc9b250626efc91d44e68716e199..5b0d96925ed4436a64f171b82f8a56f5e9a778f7 100644
(file)
--- a/
common/spl/spl_fat.c
+++ b/
common/spl/spl_fat.c
@@
-58,7
+58,7
@@
int spl_load_image_fat(struct blk_desc *block_dev,
goto end;
err = spl_parse_image_header(header);
- if (err
<= 0
)
+ if (err)
goto end;
err = file_fat_read(filename, (u8 *)spl_image.load_addr, 0);